<template>
  <div>
    <div class="component-mainHeader">
      <div class="top">
        <div class="topleft">
          <p>
            <span class="iconfont" style="color:#1abc9a;margin-right:3px;">&#xe607;</span>建项审批详情
          </p>
        </div>
        <div class="topright">
          <el-button type="info" @click="$router.go(-1)">
            <span style="font-weight:700;margin-right:5px;" class="iconfont">&#xe606;</span>返回
          </el-button>
        </div>
      </div>
    </div>
    <div class="main">
      <div class="nav">建项审批详情</div>
      <div class="step-container">
        <el-steps :active="step" align-center>
          <el-step :title="item.title" v-for="(item,index) in stepInfo" :key="index">
            <div slot="description">
              <div>操作人:{{item.userName||"暂无"}} {{item.constName||""}}</div>
              <div>{{item.lastCheckdate|timeFilter}}</div>
            </div>
          </el-step>
          <!-- <el-step title="项目建项">
            <div slot="description">
              <div>操作人:{{stepInfo[0].userName||"暂无"}} {{stepInfo[0].constName||""}}</div>
              <div>{{stepInfo[0].lastCheckdate|timeFilter}}</div>
            </div>
          </el-step>
          <el-step title="项目经理审批">
            <div slot="description">
              <div>操作人:{{stepInfo[1].userName||"暂无"}} {{stepInfo[1].constName||""}}</div>
              <div>{{stepInfo[1].lastCheckdate|timeFilter}}</div>
            </div>
          </el-step>
          <el-step title="管理部审批">
            <div slot="description">
              <div>操作人:{{stepInfo[2].userName||"暂无"}} {{stepInfo[2].constName||""}}</div>
              <div>{{stepInfo[2].lastCheckdate|timeFilter}}</div>
            </div>
          </el-step>
          <el-step title="管理部副总经理审批">
            <div slot="description">
              <div>操作人:{{stepInfo[3].userName||"暂无"}} {{stepInfo[3].constName||""}}</div>
              <div>{{stepInfo[3].lastCheckdate|timeFilter}}</div>
            </div>
          </el-step>
          <el-step title="boss审批">
            <div slot="description">
              <div>操作人:{{stepInfo[4].userName||"暂无"}} {{stepInfo[4].constName||""}}</div>
              <div>{{stepInfo[4].lastCheckdate|timeFilter}}</div>
            </div>
          </el-step> -->
          <!-- <el-step title="建项通过">
            <div slot="description">
              <div>操作人:{{stepInfo[5].userName||"暂无"}} {{stepInfo[5].constName||""}}</div>
              <div>{{stepInfo[5].lastCheckdate|dateFilter}}</div>
            </div>
          </el-step> -->
        </el-steps>
      </div>

      <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick" class="tabs">
        <el-tab-pane label="项目信息" name="first">
          <div class="tables">
            <table cellpadding="0" cellspacing="0" border="1">
              <tr>
                <td>项目编号</td>
                <td>{{baseInfo.proNo}}</td>
                <td>项目内部编号</td>
                <td>{{baseInfo.innerNo}}</td>
              </tr>
              <tr>
                <td>项目名称</td>
                <td>{{baseInfo.proName}}</td>
                <td>项目负责人</td>
                <td>{{baseInfo.userName}}</td>
              </tr>
              <tr>
                <td>所属合同类型</td>
                <td>{{baseInfo.contractType}}</td>
                <td>项目专业</td>
                <td>{{baseInfo.proMajorName}}</td>
              </tr>
              <tr>
                <td>年度</td>
                <td>{{baseInfo.proYear}}</td>
                <td>监理单位</td>
                <td>{{baseInfo.monitorOrgName}}</td>
              </tr>
              <tr>
                <td>设计单位</td>
                <td>{{baseInfo.designOrgName}}</td>
                <td>项目地址</td>
                <td>{{baseInfo.proAddr}}</td>
              </tr>
              <tr>
                <td>项目经纬度</td>
                <td>{{baseInfo.prolng+','+baseInfo.proLat}}</td>
                <td>业主</td>
                <td>{{baseInfo.owner}}</td>
              </tr>
              <tr>
                <td>施工类型</td>
                <td>{{baseInfo.Constype}}</td>
                <td>经营模式</td>
                <td>{{baseInfo.proModel}}</td>
              </tr>
              <tr>
                <td>预计开工日期</td>
                <td>{{baseInfo.sworkdate|timeFilter}}</td>
                <td>预计完工日期</td>
                <td>{{baseInfo.eworkDate|timeFilter}}</td>
              </tr>
              <tr>
                <td>预计验收日期</td>
                <td>{{baseInfo.receptionDate|timeFilter}}</td>
                <td></td>
                <td></td>
              </tr>
            </table>
          </div>
        </el-tab-pane>
        <el-tab-pane label="项目资料" name="second">
          <el-table :data="projectData" tooltip-effect="dark" style border>
            <el-table-column label="序号" align="center" width="100" type="index"></el-table-column>
            <el-table-column label="文件名称" align="center" width="230" prop="fileName"></el-table-column>
            <el-table-column label="上传时间" align="center" prop="createDate">
              <template slot-scope="scope">{{scope.row.createDate|timeFilter}}</template>
            </el-table-column>
            <el-table-column label="上传人" align="center" width="230" prop="createUser"></el-table-column>
            <el-table-column label="操作" align="center" width="230" prop="fileUrl">
              <template slot-scope="scope">
                <a
                  :href="baseUrl+scope.row.fileUrl"
                  :download="scope.row.fileName"
                  class="red"
                  target="_block"
                >下载文件</a>
              </template>
            </el-table-column>
          </el-table>
        </el-tab-pane>
        <el-tab-pane label="工程量管理" name="third">
          <div class="btn_group">
            <el-button-group>
              <el-button @click="subTitleTabs(1)" :autofocus="focus">管道队</el-button>
              <el-button @click="subTitleTabs(2)">线路队</el-button>
              <el-button @click="subTitleTabs(3)">设备队</el-button>
              <el-button @click="subTitleTabs(4)">熔纤队</el-button>
            </el-button-group>
          </div>
          <div class="gcl">
            <div class="title">{{subTitle}}</div>
            <el-table :data="infodetail" tooltip-effect="dark" style border>
              <el-table-column label="序号" align="center" width="100" type="index"></el-table-column>
              <el-table-column label="定额编号" align="center" width="110" prop="optionName"></el-table-column>
              <el-table-column label="施工内容" align="center" prop="itemContent"></el-table-column>
              <el-table-column label="单位" align="center" width="100" prop="itemUnit"></el-table-column>
              <el-table-column label="单价" align="center" width="110" prop="price"></el-table-column>
              <el-table-column label="预算数量" align="center" width="110" prop="settle"></el-table-column>
              <el-table-column label="预算总价" align="center" width="120">
                <template slot-scope="scope">{{scope.row.price*scope.row.settle|numFilter}}</template>
              </el-table-column>
            </el-table>
          </div>
          <div class="gcl_footer">
            <div class="gcl_footer_top">
              <span>预算费用总计：</span>
              <span>{{budgetMoney}}</span>&nbsp;&nbsp;
              <span></span>
              <span></span>
            </div>
            <div class="gcl_footer_bottom">
              <span></span>
              <span></span>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="材料管理" name="fourth">
          <div class="material-manage">
            <div class="budget-material">
              <div class="search-header">
                <div class="left-title">
                  <p class="left-text">
                    <span class="iconfont">&#xe607;</span>
                    预算材料
                  </p>
                  <div class="right"></div>
                </div>
              </div>
              <div class="table">
                <el-table
                  ref="multipleTable"
                  :data="materialsList"
                  tooltip-effect="dark"
                  style="width: 1100px;margin:0 auto"
                  border
                >
                  <el-table-column label="序号" align="center" width="60" type="index"></el-table-column>
                  <el-table-column label="器材名称" align="center" prop="matName"></el-table-column>
                  <el-table-column label="规格程式" align="center" width="200" prop="matModel"></el-table-column>
                  <el-table-column label="单位" align="center" width="120" prop="matUnit"></el-table-column>
                  <el-table-column label="数量" align="center" width="120" prop="num"></el-table-column>
                  <el-table-column label="供方" align="center" width="120" prop="matType"></el-table-column>
                </el-table>
              </div>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="造价管理" name="fifth">
          <div class="costManage">
            <div class="left">
              <!-- <div class="cost">业主造价</div> -->
              <!-- <div>
                <span>预算金额：</span>
                <input v-model="costData.partyaBudget" disabled>
              </div>-->
              <div class="cost">公司造价</div>
              <div>
                <span>预算金额：</span>
                <input v-model="costData.partybBudget" disabled>
              </div>
            </div>
            <div class="right">
              <!-- <div class="cost">公司造价</div> -->
              <div style="margin-top: 28px;">
                <span>利润值：</span>
                <input v-model="costData.partybBudget" disabled>
              </div>
            </div>
          </div>
          <div class="budgets">
            <div class="budget">
              <div class="title">工程预算总表</div>
              <div></div>
            </div>
            <div class="budgetTable">
              <table cellpadding="0" cellspacing="0" border="1">
                <tr>
                  <th>费用名称</th>
                  <th>需要安装的设备费</th>
                  <th>建筑安装工程费</th>
                  <th>其他费用</th>
                  <th>除税价</th>
                  <th>增值税</th>
                  <th>含税价</th>
                </tr>
                <!--v-for="(item,index) in tab1" :key="index"-->
                <tr v-for="(item,index) in tab1" :key="index">
                  <th style="width: 400px;">{{item.rowName}}</th>
                  <td></td>
                  <td></td>
                  <td></td>
                  <td>{{item.taxExcludingPrice}}</td>
                  <td></td>
                  <td></td>
                </tr>
                <!--<tr>
                <th style="color:#1abc9c;">总造价：</th>
                <td colspan="6">20000000</td>
                </tr>-->
              </table>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="预算绘图" name="sixth">
          <!-- 地图 proAmap Start -->
          <div class="approveDetail-amap">
            <pro-amap :proAmapData="proAmapData" v-if="!amapLoading"></pro-amap>
          </div>
          <!-- 地图 proAmap End -->
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
import proAmap from "@/components/common/amap/proAmap";
export default {
  data() {
    return {
      baseUrl: img_url,
      step: 3, //   进度管理 data
      // 季度条info
      stepInfo: [{}, {}, {}, {}, {}, {}],
      activeName: "first",
      // 工程量管理-子表格title
      subTitle: "线路队",
      //  工程量管理 按钮组 autofocus
      focus: true,
      // 工程量管理 预结算总计
      budgetMoney: "",
      //项目信息
      baseInfo: {},
      // 造价管理 - 业主造价 - 公司造价
      costData: {},
      // 造价管理 预算明细
      tab1: [],
      // 材料管理 - 表格
      materialsList: [],
      // 项目资料
      projectData: [],
      projectInfo: [
        {
          //工程量管理-工程量明细
          num: "111",
          profession: "222",
          kinds: "333",
          num1: "444",
          contain: "555",
          dan: "666",
          num2: "777",
          num3: "888",
          num4: "999"
        }
      ],
      //线路队
      infodetail: [
        {
          //工程量管理-工程量明细
          num: "111",
          profession: "222",
          kinds: "333",
          num1: "444",
          contain: "555",
          dan: "666",
          num2: "777",
          num3: "888",
          num4: "999"
        }
      ],
      //设备队
      infogl: [
        {
          //光缆段长表
          num: "111",
          profession: "222",
          kinds: "333",
          num1: "444",
          contain: "555",
          dan: "666",
          num2: "777",
          num3: "888",
          num4: "999"
        }
      ],
      //熔纤队
      infogls: [
        {
          //光缆段长表
          num: "111",
          profession: "222",
          kinds: "333",
          num1: "444",
          contain: "555",
          dan: "666",
          num2: "777",
          num3: "888",
          num4: "999"
        }
      ],
      lineInfo: [],
      equipmentInfo: [],
      pipePage: {
        pageSize: 4,
        rowCount: 12,
        currentPage: 1
      },
      linePage: {
        pageSize: 3,
        rowCount: 12,
        currentPage: 2
      },
      // amap
      proAmapData: {}, // 地图数据
      amapLoading: true // 地图loading
    };
  },
  created() { },
  mounted() {
    this.proInfoInit();
    this.stepInit();
  },
  methods: {
    //tab切换
    handleClick(tab, event) {
      switch (this.activeName) {
        case "first":
          this.proInfoInit();
          break;
        case "second":
          this.proDataInit();
          break;
        case "third":
          this.quantitiesInfoInit("1");
          break;
        case "fourth":
          this.materDataInit();
          break;
        case "fifth":
          this.costInfo();
          this.tabClick();
          break;
        case "sixth":
          // TODO: 切换tab后请求接口
          this.getProAmapData();
          break;
      }
    },
    // 步骤条信息
    stepInit() {
      let that = this,
        suCb = res => {
          that.stepInfo = that.deepClone(res.data.data).sort((a, b) => {
            return a.lastCheckdate - b.lastCheckdate;
          });
          console.log("步骤条信息", that.stepInfo);
          that.step = res.data.data.length;
          for (let i = that.stepInfo.length; i < 7; i++) {
            that.stepInfo.push([]);
          }
        },
        erCb = res => {
          console.log(res);
        },
        req = {
          url: "/api/web/proCheckflow/SelectChectByProIdFlow",
          methods: "post",
          data: { proId: that.$route.params.proId },
          success: suCb,
          error: erCb
        };
      that.$https(req);
    },
    // 项目信息
    proInfoInit() {
      let that = this,
        suCb = res => {
          console.log("项目信息", res);
          that.baseInfo = that.deepClone(res.data.data);
        },
        erCb = res => {
          console.log(res);
        },
        req = {
          url: "/api/web/proProject/selectByProId",
          methods: "post",
          data: { proId: that.$route.params.proId },
          success: suCb,
          error: erCb
        };
      that.$https(req);
    },
    // 项目资料
    proDataInit() {
      let that = this,
        suCb = res => {
          console.log("项目资料：", res);
          that.projectData = that.deepClone(res.data.data);
        },
        erCb = res => {
          console.log(res);
        },
        req = {
          url: "/api/web/sysFile/selectProProject",
          methods: "post",
          data: { parentId: that.$route.params.proId },
          success: suCb,
          error: erCb
        };
      console.log("项目资料参数：", req.data);
      that.$https(req);
    },
    // 子级按钮切换
    subTitleTabs(flag) {
      switch (flag) {
        case 1:
          this.subTitle = "管道队";
          this.quantitiesInfoInit("1");
          break;
        case 2:
          this.subTitle = "线路队";
          this.quantitiesInfoInit("2");
          break;
        case 3:
          this.subTitle = "设备队";
          this.quantitiesInfoInit("3");
          break;
        case 4:
          this.subTitle = "熔纤队";
          this.quantitiesInfoInit("4");
          break;
      }
    },
    // 工程量信息
    quantitiesInfoInit(type) {
      let that = this,
        suCb = res => {
          console.log("工程量信息：", res);
          that.infodetail = that.deepClone(res.data.data.workLoads);
          that.budgetMoney = res.data.data.budget.settle + "元" || "暂无数据";
        },
        erCb = res => {
          console.log(res);
        },
        req = {
          url: "/api/web/proProject/queryWorkLoad",
          methods: "post",
          data: {
            proId: that.$route.params.proId,
            workType: type
          },
          success: suCb,
          error: erCb
        };
      console.log("工程量信息参数：", req.data);
      that.$https(req);
    },
    // 材料管理
    // 材料管理 - 信息查询
    materDataInit() {
      let that = this,
        suCb = res => {
          console.log("材料信息：", res);
          that.materialsList = that.deepClone(res.data.materialsList);
        },
        erCb = res => {
          console.log(res);
        },
        req = {
          url: "/api/web/proProject/queryBudgetMaterial",
          methods: "post",
          data: {
            proId: that.$route.params.proId
          },
          success: suCb,
          error: erCb
        };
      that.$https(req);
    },
    // 造价管理 信息 查询
    costInfo() {
      let that = this,
        suCb = res => {
          console.log("造价信息：", res);
          that.costData = that.deepClone(res.data.res[0]) || {};
        },
        erCb = res => {
          console.log(res);
        },
        req = {
          url: "/api/web/proProject/queryDetailCost",
          methods: "post",
          data: { proId: that.$route.params.info },
          success: suCb,
          error: erCb
        };
      that.$https(req);
    },
    // 造价管理 预算查询
    tabClick() {
      let that = this;
      let suCb = function (res) {
        that.tab1 = res.data.data;
        console.log("预算查询结果", res.data);
      };
      let erCb = function (res) {
        console.log(res);
      };
      let postData = {
        proId: that.$route.params.proId,
        sheetCode: "1.1",
        settlementType: '0'
      };
      let palyParam = {
        url: "/api/web/proBudgetTableCol/selectProBugetTable15",
        methods: "post",
        data: postData,
        success: suCb,
        error: erCb
      };
      that.$https(palyParam);
    },
    /**
     * 获取施工队上传数据后绘图的方法
     */
    getProAmapData() {
      let succ = res => {
        // console.log(res)
        res = res.data;
        if (res.flag == 1) {
          res = res.res;
          // console.log(res, "data Obj");
          let points = res.mapPointList;
          let pro_id = res.proId;
          let pro_lnglat = [res.lng, res.lat];
          let details = res.workLoadList;
          this.proAmapData.pro_id = pro_id;
          this.proAmapData.pro_lnglat = pro_lnglat;
          this.proAmapData.points = points;
          this.proAmapData.details = details;
          // TODO: points 如果后端传来的属性不一样需要修改
          this.amapLoading = false;
        }
      };

      let params = {
        proId: this.$route.params.proId
      };

      let data = {
        url: "/api/web/proProject/queryBudgetWorkLoad",
        methods: "post",
        data: params,
        success: succ
      };

      //正常请求
      if (params.proId) {
        this.$https(data);
      }

      // 143服务器请求
      // this.$axios.post("/apiamap/web/proProject/queryBudgetWorkLoad",params)
      //   .then(succ)

      // mock的模拟数据
      // this.$axios.get("/mock/queryBudgetWorkLoad.json")
      //   .then(res => {
      //     // console.log(res,"axios.get")
      //     succ(res)
      //   })
    },
  },
  watch: {},
  components: {
    proAmap
  }
};
</script>
<style scoped>
.main {
  width: 1100px;
  margin: 20px auto;
  box-sizing: border-box;
  border: 1px solid #e4e4e4;
  font-size: 14px;
}
.main .nav {
  height: 40px;
  line-height: 40px;
  padding-left: 20px;
  text-align: left;
  background: #f3f3f3;
  color: #666;
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 30px;
}
.step-container {
  margin-bottom: 60px;
}
.gcl {
  margin-bottom: 20px;
}
.tabs {
  width: 1060px;
  margin: 20px auto;
}
.budget {
  margin-top: 20px;
  width: 100%;
  overflow: hidden;
  background: #f8f8f8;
  height: 35px;
  line-height: 35px;
  font-size: 14px;
  border: 1px solid #e4e4e4;
  border-bottom: none;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 14px;
  color: #666;
}
.gcl .title {
  background: #f8f8f8;
  height: 35px;
  line-height: 35px;
  color: #666;
  padding: 0 20px;
  font-size: 14px;
  border: 1px solid #e4e4e4;
  border-bottom: none;
  text-align: left;
}
.budget .title {
  float: left;
}
.budget div:last-of-type {
  float: right;
}
.gcl .tabs {
  width: 1060px;
  margin: 20px;
  box-sizing: border-box;
}
.nav {
  background: #f8f8f8;
  height: 50px;
  font-size: 14px;
  line-height: 50px;
  border-bottom: 1px solid #e4e4e4;
  text-align: left;
  padding-left: 20px;
  font-size: 14px;
  color: #666;
}
.tables table {
  width: 660px;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 12px;
}
.budgetTable table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 12px;
}
.budgetTable table td {
  /* width: 500px; */
  height: 40px;
}
.tables table td {
  height: 44px;
}
.tables table td:nth-of-type(2n) {
  text-align: left;
  padding-left: 20px;
}
.tables table td:nth-of-type(2n + 1) {
  text-align: right;
  padding-right: 20px;
  width: 160px;
  background: #f9fafc;
}
.costManage {
  overflow: hidden;
  font-size: 14px;
}
.costManage .left,
.costManage .right {
  float: left;
}
.costManage .left {
  margin-right: 60px;
}
.costManage .cost {
  text-align: left;
  color: #949494;
  margin-bottom: 10px;
}
.costManage .left span,
.costManage .right span {
  display: inline-block;
  width: 100px;
  text-align: right;
  padding-right: 10px;
  height: 30px;
  color: #666;
  font-size: 12px;
}
.costManage .left span i,
.costManage .right span i {
  color: red;
  vertical-align: middle;
  font-style: normal;
  padding-right: 2px;
}
.costManage .left input,
.costManage .right input {
  height: 30px;
  padding-left: 5px;
  outline: none;
  border: 1px solid #e4e4e4;
  border-radius: 2px;
}

/* 下面是进度管理的样式 */
.step-container {
  margin: 20px auto;
}
.table-title p {
  font-family: "PingFangSC-Regular", "PingFang SC";
  font-weight: 400;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  font-size: 16px;
  color: #666;
  text-align: left;
  line-height: 40px;
}

.tables table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 12px;
}
.tables table td {
  height: 44px;
}
.tables table td:nth-of-type(2n) {
  text-align: left;
  padding-left: 20px;
  width: 332px;
}
.pipe-progress .tables table td:nth-of-type(2n),
.line-progress .tables table td:nth-of-type(2n),
.equipment-progress .tables table td:nth-of-type(2n) {
  width: 332px;
}
.tables table td:nth-of-type(2n + 1) {
  text-align: right;
  padding-right: 20px;
  width: 160px;
  background: #f9fafc;
}

.component-paging .table-bottom,
.component-paging .table-bottom,
.component-paging .table-bottom {
  width: 100%;
  margin-bottom: 20px;
}

.pipe-progress .table,
.line-progress .table,
.equipment-progress .table {
  margin-top: 20px;
}

/* 材料管理 */
.material-manage .search-header {
  width: 1028px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 1);
  margin: 20px auto 0;
}

.material-manage .search-header .left-title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: rgba(243, 243, 243, 1);
  height: 45px;
  box-sizing: border-box;
  border: 1px solid rgba(228, 228, 228, 1);
  border-bottom: 0;
}

.material-manage .search-header .left-title .left-text {
  width: 20%;
  color: #666;
  font-size: 14px;
  line-height: 45px;
  font-weight: 700;
  text-align: left;
  margin: 0 0 0 30px;
}

.material-manage .right {
  width: 70%;
  display: flex;
  justify-content: flex-end;
  margin-right: 30px;
}

.material-manage .right button {
  padding: 0 15px;
  height: 30px;
  margin: 6px 5px;
  line-height: 30px;
  font-size: 14px;
  color: #666;
  background-color: #fff;
  border: 1px solid #ccc;
}

.material-manage .right button:hover {
  background-color: #f3f3f3;
}

/* 资料归档 */
.data-back-sign,
.owner-data,
.design-check-data,
.process-manage-data,
.project-finish-data,
.official-data,
.move-system-data {
  margin: 20px auto;
}
.table-title-left {
  color: #1abc9c;
  font-size: 16px;
  float: right;
}

.gray {
  color: #ccc;
}

/* 删除按钮 */
.red {
  color: #48c9b0;
  font-size: 12px;
}

.data-back-sign .tables table td:nth-of-type(2n + 1) {
  text-align: right;
  padding-right: 20px;
  width: 110px;
  background: #f9fafc;
}

.move-system-msg .tables table td:nth-of-type(2n + 1) {
  text-align: right;
  padding-right: 20px;
  width: 140px;
  background: #f9fafc;
}

.table-title > div:last-of-type {
  float: right;
  margin: -45px 20px 10px;
}
.table-title > div:last-of-type span {
  display: inline-block;
  margin-left: 20px;
  padding: 5px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 4px;
}
.table-title > div:last-of-type span:first-of-type {
  border: 1px solid #e4e4e4;
  color: #666;
  background: #fff;
}
.table-title > div:last-of-type span:last-of-type {
  border: 1px solid #1abc9c;
  color: #fff;
  background: #1abc9c;
}

/* 工程量管理 按钮组 */
.btn_group {
  text-align: left;
  margin-bottom: 15px;
}

/* 工程量管理 底部 价格显示 */
.gcl_footer {
  text-align: right;
}

.gcl_footer .gcl_footer_top {
  margin-bottom: 10px;
  font-size: 18px;
}

.gcl_footer .gcl_footer_top span:nth-child(2n),
.gcl_footer .gcl_footer_bottom span:nth-child(2n) {
  color: #1abc9c;
}

.gcl_footer .gcl_footer_bottom {
  margin-bottom: 10px;
  font-size: 19px;
}

.budgetTable table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 12px;
}
.budgetTable table td,
th {
  height: 40px;
}

th {
  background-color: #f9fafc;
}

/* 建项审批列表最外层容器 pro-amap Start*/
.pro-amap {
  widows: 100%;
}
/* 建项审批列表最外层容器 pro-amap End and 地图容器 Start */
.amap {
  width: 100%;
  height: 500px;
  position: relative;
}
#container {
  position: absolute;
  width: 100%;
  height: 100%;
}
/* 地图容器 End and 数据展示列表 Start */
.table {
  width: 100%;
  margin-top: 20px;
}
.table-title {
  text-align: left;
  color: #949494;
  font-size: 16px;
}
.amap-all-table-header {
  display: flex;
  align-items: center;
  margin: 10px 0 20px;
}
.amap-all-table-btn {
  width: 120px;
  height: 30px;
  line-height: 30px;
  cursor: pointer;
  border: 1px solid #e4e4e4;
}
.amap-all-table-btn:not(:first-child) {
  margin-left: 20px;
}
.amap-all-table-btn-active {
  background: #1abc9c;
  color: #fff;
}
.amap-all-table-header-update {
  margin-left: 300px;
}
/* 数据展示列表 End */
</style>

<!-- 在全局中修改地图的css -->
<style>
.pro-amap .marker-container {
  position: relative;
}
.pro-amap .marker-container img {
  position: absolute;
}
.pro-amap .marker-container div:nth-child(2) {
  color: red;
  position: absolute;
  top: -20px;
  left: 0;
}
.pro-amap .marker-container div:nth-child(3) {
  height: 20px;
  line-height: 20px;
  padding: 3px 6px;
  background: #fff;
  border: 1px solid red;
  position: absolute;
  left: 6px;
  top: 6px;
}
</style>
